/**
 * Class: Friction
 *
 * Purpose: 
 *
 * Created: Jan 27, 2010 @ 9:42:00 AM
 * @author Ken Scott
 */
package org.openfantasia.ps.modifier.forces;

import org.openfantasia.ps.particle.Particle;

public class Friction extends Scalar {

	public Friction() {
	}


	public Friction(double amount) {
		super(amount);
	}


	public void act(Particle particle) {
		particle.applyForce(particle.getVelocity().copy().normalize().scale(-amount));
	}
}
